from lib.console import cmessage

class CommandHandler(object):
	
	def __init__(self, commandHandler, world):
		self._commandHandler = commandHandler
		self._world = world
		self._numHellos = 0
	
	def processVerbFromPlayer(self, verb, player, fullCommand):
		if self._numHellos == 0:
			cmessage(player, "Hello back to you.")
		elif self._numHellos < 3:
			cmessage(player, "Why, you are the friendly sort.")
		else:
			cmessage(player, "OK. I got it. Hello. Now leave me alone.")
		self._numHellos += 1
		